# backend/crud/__init__.py
"""
CRUD 操作聚合模块
提供统一的接口导出
"""

from . import user, subscription, node, user_subscription

# 用户
from .user import (
    get_users,
    get_user,
    delete_user,
    authenticate_user,
    create_user,
)

# 订阅
from .subscription import (
    create_subscription,
    get_subscriptions,
    update_subscription,
)

# 节点
from .node import (
    create_node,
    get_nodes,
)

# 用户订阅关系
from .user_subscription import (
    create_user_subscription,
    get_user_subscriptions,
)

__all__ = [
    # 模块
    "user",
    "subscription",
    "node",
    "user_subscription",
    # 函数
    "get_users",
    "get_user",
    "delete_user",
    "authenticate_user",
    "create_user",
    "create_subscription",
    "get_subscriptions",
    "update_subscription",
    "create_node",
    "get_nodes",
    "create_user_subscription",
    "get_user_subscriptions",
]